package com.jza04.flightbooking.service;

import com.jza04.flightbooking.entity.Discount;

import java.util.Date;
import java.util.List;

/**
 * 折扣服务接口
 */
public interface DiscountService {
    
    /**
     * 查询所有折扣
     */
    List<Discount> findAllDiscounts();
    
    /**
     * 根据ID查询折扣
     */
    Discount findDiscountById(Integer discountId);
    
    /**
     * 查询当前有效的折扣
     */
    List<Discount> findValidDiscounts();
    
    /**
     * 添加折扣
     */
    boolean addDiscount(Discount discount);
    
    /**
     * 更新折扣
     */
    boolean updateDiscount(Discount discount);
    
    /**
     * 删除折扣
     */
    boolean deleteDiscount(Integer discountId);
} 